package com.jk.service.Impl;

import com.jk.dao.OrderDao;
import com.jk.entity.OrderEntity;
import com.jk.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceimpl implements OrderService {

    @Autowired
    private OrderDao orderDao;

    @Override
    public void addorder(OrderEntity orderEntity) {
        orderDao.insert(orderEntity);
    }

    @Override
    public List<OrderEntity> getlistorder(Integer userId) {
        List<OrderEntity> list=orderDao.getlistorder(userId);
        return list;
    }


}
